﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarShop
{
    class Motorcycle : Vehicle
    {
         //fields
        private Engine motorcycEngine;
        private Transmission transmission;
        private double motorcycleWeight;
        private List<string> description = new List<string>();

        //constructor
        public Motorcycle(string brand, string model, string color, int year, int speed, int price, Engine motorcycEngine, Transmission transmission, double motorcycleWeight)
            : base(brand, model, color, year, speed, price)
        {
            this.motorcycEngine = motorcycEngine;
            this.transmission = transmission;
            this.motorcycleWeight = motorcycleWeight;
        }

        public Transmission Transmission
        {
            get
            {
                return this.transmission;
            }
            set
            {
                this.transmission = value;
            }
        }


        public Engine MotorcycEngine
        {
            get
            {
                return this.motorcycEngine;
            }
            set
            {
                this.motorcycEngine = value;
            }
        }

        public List<string> Description
        {
            get { return description; }
            set
            {
                this.description = value;
            }
        }
        public void AddComment(string extra)
        {
            this.description.Add(extra);
        }

        public override string AdditionalInfo()
        {
            StringBuilder someMotorcycle = new StringBuilder();
            someMotorcycle.AppendLine("Transmission: " + this.Transmission.ToString());
            someMotorcycle.AppendLine("Motorcycle weight: : " + this.motorcycleWeight);
            return someMotorcycle.ToString();
        }

    }
}
